package cn.yh.model;

import org.springframework.stereotype.Component;

@Component
public class User {

	private String name;
	private Integer id;
	private String phone;
	private String email;
	private Integer age;
	
	
	
	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public Integer getId() {
		return id;
	}



	public void setId(Integer id) {
		this.id = id;
	}



	public String getPhone() {
		return phone;
	}



	public void setPhone(String phone) {
		this.phone = phone;
	}



	public String getEmail() {
		return email;
	}



	public void setEmail(String email) {
		this.email = email;
	}



	public Integer getAge() {
		return age;
	}



	public void setAge(Integer age) {
		this.age = age;
	}

	public User() {
		// TODO Auto-generated constructor stub
		super();
	}

	public User(String name, String phone, String email, Integer age) {
		super();
		this.name = name;
		this.phone = phone;
		this.email = email;
		this.age = age;
	}



	@Override
	public String toString() {
		return "User [name=" + name + ", id=" + id + ", phone=" + phone + ", email=" + email + ", age=" + age + "]";
	}
	
	
	
	
}
